/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

.lock_date {
  color: #444;
  padding-left: 20px;
  font-weight: bold;
}

#submit_assignment {
  .submission_comment_textarea {
    width: 300px;
    height: 20px;
    padding: 4px 6px;
    &.focus_or_content {
      width: 100%;
      height: 72px;
    }
  }
}

#point_change_warning {
  margin-top: 15px;
  margin-bottom: 0px;
  display: none;
}

#edit_assignment_form {
  margin: 0;
  .advanced-togglable-true {
    margin-top: 18px;
    border-top: 1px solid #ccc;
    padding-top: 18px;
  }
  .advanced-togglable-false {
    margin-top: 18px;
  }
  #group_category_selector,
  #assignment_peer_reviews_fields {
    margin-bottom: 0;
  }
  .frozen-description {
    padding: 15px;
    overflow-y: auto;
    height: 200px;
    border: 1px solid #AAA;
    resize: vertical;
  }
  .explanation {
    font-size: 0.8em;
    color: #888;
  }
}

#assignment_turnitin_settings {
  min-width: 400px;
  label {
    width: 95%;
  }
  .js-exclude-small-matches-options {
    margin-left: 21px;
    input[type="radio"] {
      margin-top: 13px;
    }
  }
}

#assignment_show {
  .assignment-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .title-content {
    flex-grow: 1;
    vertical-align: bottom;
  }
  .assignment-buttons {
    vertical-align: bottom;
    text-align: right;
    min-width: 335px;
    padding-bottom: 12px;
  }
  .undo-main-margins {
    margin-left: -1em;
    margin-right: -1em;
    margin-bottom: -1em;
  }
  .student-assignment-overview {
    list-style: none;
    width: 100%;
    border-top: 1px solid #BBB;
    border-bottom: 1px solid #BBB;
    font-size: 1.1em;
    padding: 0.5em 0.25em;
    margin: 0 0 1em 0;
    li {
      display: inline-block;
    }
    .title {
      font-weight: bold;
      padding-right: 0.5em;
    }
    .value {
      padding-right: 2.5em;
    }
  }
  .form-horizontal.display-only .control-group {
    margin-bottom: 0;
  }
  .description.student-version {
    min-height: 260px;
  }
  .description.teacher-version {
    padding: 15px;
    overflow-y: auto;
    height: 200px;
    border: 1px solid #AAA;
    border-radius: 4px;
    resize: vertical;
  }
  .control-group {
    .control-label {
      font-weight: bold;
    }
    .controls .value {
      display: block;
      padding-top: 5px;
    }
  }
}

.control-group {
  .controls-url {
    padding-top: 5px;
    word-wrap: break-word;
  }
}

.omit-from-final-warning {
  padding: 12px;
  border-width: 1px;
  margin: 5px;
}

#assignment-draft-state {
  padding: 10px;
  line-height: 33px;
}

#sequence_footer.module-sequence-footer {
  padding-top: 0px;
}

#sidebar_content {
  .details {
    border: none;
    padding: 0;
    h3 {
      margin: 0;
    }
    .header {
      font-size: 1.2em;
      font-weight: bold;
      margin-top: 2px;
    }
    .content {
      padding-left: 5px;
      h4 {
        @include fontSize(11px);
        font-weight: bold;
        margin-bottom: 0;
      }
      .module {
        padding-top: 10px;
      }
      .late {
        color: $ic-color-danger;
        font-weight: bold;
      }
      .unstyled_list {
        margin: 5px 10px 0 10px;
      }
      .comments {
        @include fontSize(11px);
        max-height: 300px;
        overflow: auto;
        .comment {
          margin-left: 10px;
          .signature {
            color: #888888;
            font-size: 0.8em;
            text-align: right;
          }
        }
      }
    }
  }
}
